Optimal. Leaf size=38 \[ \frac{\csc (e+f x)}{a^2 c^2 f}-\frac{\csc ^3(e+f x)}{3 a^2 c^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0981878, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {3958, 2606} \[ \frac{\csc (e+f x)}{a^2 c^2 f}-\frac{\csc ^3(e+f x)}{3 a^2 c^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3958
Rule 2606
Rubi steps
\begin{align*} \int \frac{\sec (e+f x)}{(a+a \sec (e+f x))^2 (c-c \sec (e+f x))^2} \, dx &=\frac{\int \cot ^3(e+f x) \csc (e+f x) \, dx}{a^2 c^2}\\ &=-\frac{\operatorname{Subst}\left (\int \left (-1+x^2\right ) \, dx,x,\csc (e+f x)\right )}{a^2 c^2 f}\\ &=\frac{\csc (e+f x)}{a^2 c^2 f}-\frac{\csc ^3(e+f x)}{3 a^2 c^2 f}\\ \end{align*}
Mathematica [A] time = 0.0495572, size = 33, normalized size = 0.87 \[ \frac{\frac{\csc (e+f x)}{f}-\frac{\csc ^3(e+f x)}{3 f}}{a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 180., size = 0, normalized size = 0. \begin{align*} \int{\frac{\sec \left ( fx+e \right ) }{ \left ( a+a\sec \left ( fx+e \right ) \right ) ^{2} \left ( c-c\sec \left ( fx+e \right ) \right ) ^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.960094, size = 42, normalized size = 1.11 \begin{align*} \frac{3 \, \sin \left (f x + e\right )^{2} - 1}{3 \, a^{2} c^{2} f \sin \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.438563, size = 111, normalized size = 2.92 \begin{align*} \frac{3 \, \cos \left (f x + e\right )^{2} - 2}{3 \,{\left (a^{2} c^{2} f \cos \left (f x + e\right )^{2} - a^{2} c^{2} f\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\sec{\left (e + f x \right )}}{\sec ^{4}{\left (e + f x \right )} - 2 \sec ^{2}{\left (e + f x \right )} + 1}\, dx}{a^{2} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23126, size = 45, normalized size = 1.18 \begin{align*} \frac{3 \, \sin \left (f x + e\right )^{2} - 1}{3 \, a^{2} c^{2} f \sin \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]